<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/5/21
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="user" class="ch8.user" scope="page">
    <jsp:setProperty name="user" property="*"></jsp:setProperty>
</jsp:useBean>
<table align="center" width="400">
    <tr>
        <td align="center">名称：<jsp:getProperty property="name" name="user"/>
        </td>
    </tr>
    <tr>
        <td align="center">价格：<jsp:getProperty property="price" name="user"/>
        </td>
    </tr>
    <tr>
        <td align="center">作者：<jsp:getProperty property="writer" name="user"/>
        </td>
    </tr>
</table>
</body>
</html>
